package uk.ac.glasgow.demosocs.impl;

import java.io.Serializable;
import java.util.List;
import uk.ac.glasgow.demosocs.ElectionResult;
import uk.ac.glasgow.demosocs.Option;

/**
 * Concrete implementation of an election result.
 * @author Team K
 */
public class ElectionResultImpl implements ElectionResult, Serializable {
	private List<Option> winners;
	
	/**
	 * Constructor
	 * @param winner List of winning candidates
	 */
	public ElectionResultImpl(List<Option> winners) {
		this.winners = winners;
	}

	/**
	 * Getter for winning candidates
	 * @return list of winning candidates
	 */
	@Override
	public List<Option> getWinningOptions() {
		return winners;
	}

}
